<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>申请处理</title>
    <link rel="stylesheet" href="/asset/layui/css/layui.css">
    <link rel="stylesheet" href="/asset/css/base.css?v=20190989">
    <link rel="Shortcut Icon" href="cachet.ico">
    <script type="text/javascript" src="/asset/js/jquery-3.3.1.min.js"></script>
	<script src="/asset/layui/layui.js"></script>
    <script src="/asset/js/common.js"></script>
</head>
<body >
<div class="x-body">
	<div class="layui-form">
	  <input type="hidden" name="applyId" value="${apply.applyId}">
	  <div class="layui-form-item">
	    <div class="layui-inline">
	      <label class="layui-form-label">申请时间</label>
	      <div class="layui-input-inline layui-form-mid">
	        ${apply.applyTime?string('yyyy-MM-dd HH:mm:ss')}
	      </div>
	    </div>
	    
	    <div class="layui-inline">
	      <label class="layui-form-label">当前状态</label>
	      <div class="layui-input-inline layui-form-mid">
	        	<@linkage type="APPLY_STATUS" key=apply.applyStatus>
	        		<span class="${linkage.style}">${linkage.name}</span>
	        	</@linkage>
	      </div>
	    </div>
	  </div>
	  
	  <div class="layui-form-item">
	    <div class="layui-inline">
	      <label class="layui-form-label">申请印章</label>
	      <div class="layui-input-inline layui-form-mid">
	        ${apply.seal.sealName}
	      </div>
	    </div>
	  </div>
	  
	  <div class="layui-form-item">
	    <div class="layui-inline">
	      <label class="layui-form-label">申请类型</label>
	      <div class="layui-input-inline layui-form-mid">
	        <@linkage type="APPLY_TYPE" key=apply.applyType>
	        		<span class="${linkage.style}">${linkage.name}</span>
	        	</@linkage>
	      </div>
	    </div>
	    <div class="layui-inline">
	      <label class="layui-form-label">申请人</label>
	      <div class="layui-input-inline layui-form-mid">
	        ${apply.person.name}
	      </div>
	    </div>
	  </div>
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">申请次数</label>
	    <div class="layui-input-inline layui-form-mid">
	      ${apply.applyTimes} 次
	    </div>
	  </div>
	  
	  <div class="layui-form-item">
	    <label class="layui-form-label">申请事由</label>
	    <div class="layui-input-inline layui-form-mid">
	      ${apply.cause}
	    </div>
	  </div>
	  
	  <div class="layui-form-item">
	    <div class="layui-inline">
	      <label class="layui-form-label">相关附件</label>
	      <div class="layui-input-inline" style="width:600px">
			    <table class="layui-table">
			      <thead>
			          <tr>
				        <th>文件名</th>
				        <th>操作</th>
				      </tr>
			      </thead>
			      <tbody>
			      		<#if upfiles?? && upfiles?size gt 0>
			      		<#list upfiles as item>
			      		<tr>
			      			<td>${item.fileName}</td>
			      			<td><a href="${item.fileUrl}" target="_blank" class="layui-btn layui-btn-xs layui-btn-warm">查看</a></td>
			      		</tr>
			      		</#list>
			      		<#else>
			      		<tr>
			      			<td colspan=2 style="text-align:center">暂无附件</td>
			      		</tr>
			      		</#if>
			      		
			      </tbody>
			    </table>
	        </div>
	    </div>
	  </div>
	  
	  
	    <div class="layui-form-item">
		    <label class="layui-form-label">审核详情</label>
		    <div class="layui-input-block">
		      
		        <ul class="layui-timeline">
				  <li class="layui-timeline-item">
				    <i class="layui-icon layui-timeline-axis"></i>
				    <div class="layui-timeline-content layui-text">
				      <div class="layui-timeline-title">${apply.applyTime?string('yyyy-MM-dd HH:mm:ss')}，您 发启申请</div>
				    </div>
				  </li>
				  <#list verifys as item>
				  <li class="layui-timeline-item">
				    <i class="layui-icon layui-timeline-axis"></i>
				    <div class="layui-timeline-content layui-text">
				      <div class="layui-timeline-title">
				      		<#if item.verifyStatus=='PENDING'>
				      				等待，${item.person.name}（${item.person.position}）审核
				      		<#else>
				      				${item.verifyTime?string('yyyy-MM-dd HH:mm:ss')}，${item.person.name}（${item.person.position}）
				      		
						      		<#if item.verifyStatus =='PASSED'>
						      			审核通过
						      		<#else>
						      			拒绝通过，原因：${item.verifyResult}
						      		</#if>
				      		</#if>
				      </div>
				    </div>
				  </li>
				  </#list>
				</ul>
		    </div>
		  </div>
	</div>
</div>   
    <script>
        layui.use(['form','layer','laydate','upload'], function(){
            $ = layui.jquery;
          var form = layui.form,layer = layui.layer;
 
        });
    </script>

</body>
</html>